<?php
	include('config.php');
 
    
    if($day_time === "pm"){
    	 $time_to_leave =  $time_to_leave + 12;
    }
   //echo "<br>".$time_to_leave ." ". $day_time . "<br>";//= ;
    //$time_to_leave = '5';
    
    // get all the IDs related to that bus
    $busIDs = Routes::getbusIds($bus,$street,$time_to_leave);
    
    //echo "<br>"; $i = 1;
    /*foreach($busIDs as $result){
    	//echo "<br>Route id = " . $result['route_id'];
    	foreach($result['Trips'] as $trip){
    		//echo   "<br> - Trip id = " . $trip['trip_id'];
    		foreach($trip['StopTimes'] as $stop_time){
    			echo $i . "- "; 
    			$i = $i+1;
    			$time = date('g:i a',strtotime($stop_time['arrival_time']));
    			//print_r($stop_time);
    			//echo "<br>&nbsp;&nbsp;&nbsp;&nbsp;-- Stop id = " . $stop_time['stop_id'] .
    			// " -> ".;
    			echo $stop_time['Stops']['stop_name']." ,, at :  ".$time . "<br>";
    		}
    	}
    }*/
  ?>